package org.zpmis.domain.org.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class TreeNode {
    protected Long id;
    protected Long parentId;
    //protected List<TreeNode> children = new ArrayList<TreeNode>();
    protected List<TreeNode> children;
    public void add(TreeNode node) {
        children.add(node);
    }
}
